package edu.msse.signup.ui;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class FacesApplicationService implements ApplicationService {

	public void addErrorMessage(String message) {
	    addErrorMessage(null, message);
	}

	public void addErrorMessage(String clientId, String message) {
	    FacesContext faces = FacesContext.getCurrentInstance();
	    faces.addMessage(clientId, new FacesMessage(FacesMessage.SEVERITY_ERROR, message, message));
	}

}
